﻿@{
    Layout = null;
   
}
@using CSLC.WeChat.PublicAccount;
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/Content/Scripts/jquery-1.8.0.min.js"></script>
    <script src="~/Content/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Content/Scripts/Bussiness/MassMessage/Mass.js"></script>
</head>
<body>
    <div>
        
        @using (Ajax.BeginForm("Mass", "MassMessage", new AjaxOptions { HttpMethod = "post", OnSuccess = "success" }))
        {

            <h3>群发消息</h3>
            <h4>提示：<label id="ltrMessage" >本示例演示群发消息的使用</label></h4>
            <p>
                请选择公众号：
                <asp:ListBox runat="server" ID="lbPublicAccount" Rows="1"></asp:ListBox>
                <select>
                    @foreach(AccountInfo info in ViewBag.SelectOption )
                    {
                        <option value="@info.UserName">@info.Caption</option>
                    }
                </select>
            </p>
            <p>
                请输入待群发的消息内容：
                <textarea id="txtContent"></textarea></p>
            <table border="1">
                <thead>
                    <tr>
                        <td>用户组：</td>
                        <td>用户：</td>
                        <td>已群发消息：</td>
                    </tr>
                </thead>
                
                <tbody>
                    <tr style="vertical-align:top; min-height:200px; height:200px;">
                        <td><asp:RadioButtonList runat="server" ID="rblGroup" RepeatDirection="Vertical" /></td>
                        <td><asp:CheckBoxList runat="server" ID="cblUser" RepeatDirection="Vertical" RepeatColumns="5" /></td>
                        <td><asp:RadioButtonList runat="server" ID="rblMassMessage" RepeatDirection="Vertical" /></td>
                    </tr>
                    <tr style="vertical-align:top;">
                        <td>
                            <input type="button" id="btnGetGroup" value="获取用户组" />
                            <input type="button" id="btnSendToGroup" value="按用户组群发" />
                        </td>
                        <td>
                            <input type="button" id="btnGetUser" value="获取用户" />
                            <input type="button" id="btnSendToUsers" value="按用户列表群发" />
                            <input type="button" id="btnPreview" value="预览群发消息" />
                        </td>
                        <td>
                            <input type="button" id="btnDelete" value="删除群发消息" />
                            <input type="button" id="btnGetStatus" value="查询群发状态" />
                        </td>
                    </tr>
                </tbody>
            </table>
        }
    </div>
</body>
</html>
